package poidemo.service;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>Title: DemoService </p>
 * <p>Description: Feign接口，調用指定微服務 </p>
 *
 * @author Nelson
 * @version 1.0
 * @date 2020/1/16 18:04
 */
@FeignClient(value = "service-hi")
public interface DemoService {
  @RequestMapping(value = "/hi",method = RequestMethod.GET)
  String sayHiFromClientOne(@RequestParam(value = "name") String name);
}
